package com.ifugle.rap.application.service;

import com.ifugle.rap.application.api.PayApi;
import com.ifugle.rap.application.mapper.PayMapper;
import com.ifugle.rap.application.model.Pay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PayService implements PayApi {

    @Autowired
    PayMapper payMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return payMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Pay record) {
        return payMapper.insert(record);
    }

    @Override
    public int insertSelective(Pay record) {
        return payMapper.insertSelective(record);
    }

    @Override
    public Pay selectByPrimaryKey(Long id) {
        return payMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Pay record) {
        return payMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Pay record) {
        return payMapper.updateByPrimaryKey(record);
    }
}
